<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib uri="/secu" prefix="secu"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<%@ include file="/commons/include/head-meta.inc.jsp"%>	
<script type="text/javascript">
	$(document).ready(function(){
		
	});
	function downFile(attachId){
		var url='opBusinessAnalysis.do?action=downFile&attachId='+attachId;
		subForm(url);
	}
	
	function edit(appId){
		var url='opBusinessAnalysis.do?action=edit&appId='+appId;
		subForm(url);
	}
	
	function del(appId){
		if(confirm('您确认要删除记录吗？')){
			var url='opBusinessAnalysis.do?action=del&appId='+appId;
			subForm(url);	
		}
	}
	
	function subForm(url){
		var dForm=$('#downForm');
		dForm.attr('action',url);
		dForm.submit();
	}
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<c:url value="/images/new/gxzl_index_2.gif"/>">
				<tr>
					<td width="20" height="32">&nbsp;</td>
					<td width="20"><img src="<c:url value="/images/new/dq_dot.gif"/>" width="15" height="12" /></td>
					<td>当前位置：<a href="opBusinessAnalysis.do">产品运营分析报告共享区</a>-<em>&gt;</em>查看</td>
					<td width="60"></td>
					<td width="200"></td>
					<td width="100"></td>
				</tr>
			</table>
			</td>
		</tr>
  <tr> 
    <td background="<c:url value="/images/home_4a.gif"/>"> 
      <table width="100%" height="300" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr>
          <td valign="top">
					<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" style="margin-top: 12px;" >
						<tr>
							<td height="5">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="5" height="5"><img src="<c:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
										<td class="tdborderup"><img src="<c:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
										<td width="5"><img src="<c:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td class="tdborderleftright">
							<form action="opBusinessAnalysis.do?action=saveUpload" enctype="multipart/form-data" method="post" name="searchForm">
							<button id="backHistoryBtn" type="button" onclick="javascript:history.go(-1);" style="margin-right: 6px">返回</button>
							<c:if test="${LOGINUSER_CONTEXT.currUser.person.id==listone.opUser }">
							<button id="editBtn" type="button" onclick="edit('${listone.appId}');" style="margin-right: 6px">编辑</button>
							</c:if>
							<secu:out resType="MODELMENU" code="MM_BSALY_DEL">
								<c:set var="isPermission" value="true"></c:set>
							</secu:out>
							<c:if test="${LOGINUSER_CONTEXT.currUser.person.id==listone.opUser||isPermission }">
							<button id="delBtn" type="button" onclick="del('${listone.appId}');" style="margin-right: 6px">删除</button>
							</c:if>
												<table width="100%" border="0" cellspacing="0" cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td background="<c:url value="/images/catalog_manage_bbs_3.gif"/>"
															colspan="4">
															<span style="margin-top: 0px; margin-left: 14px">
																<img src="<c:url value="/images/catalog_manage_12.gif"/>" width=13 height=13 alt="">
															</span>
															<strong>基本信息</strong>
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																上传人：
															</div>
														</td>
														<td width="36%">${listone.opUserCnName }
														</td>
														
														<td width="14%" bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																所在部门：
															</div>
														</td>
														<td width="36%">${listone.orgCnName }</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																报告名称：
															</div>
														</td>
														<td colspan="3">
															${listone.orgShorCnName }${listone.issuse }产品运营分析报告_${listone.opUserCnName }
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																附件：
															</div>
														</td>
														<td colspan="3" id="fileListId">
															<c:forEach items="${attachList }" var="attachOne">
															<div style="margin: 5 0;"><a style="font-weight: bold;" href="javascript:downFile('${attachOne.id }');">${attachOne.name } 下载</a></div>
															</c:forEach>
														</td>
													</tr>
												</table>
											                
							
							</form>
							
							<form action="opBusinessAnalysis.do?action=saveUpload" method="post" id="downForm">
								
							</form>
							</td>
						</tr>
						<tr>
							<td height="5">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="5" height="5"><img src="<c:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
										<td class="tdborderbottom"><img src="<c:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
										<td width="5"><img src="<c:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
									</tr>
								</table>
							</td>
						</tr>
					</table> 
				</td>
			</tr>
		</table>	
	</td>
	</tr>
</table>				
</body>
</html>
